package utils;




public class TopicUtil {
	/**中心所属省份*/
	public static enum Pro{
		gansu,
		gansutest,
		neimeng,
		anhui,
		hebei,
		jilin,
		heilongjiang,
		hubei,
		tianjin,
		ningxia,
		yichang,
		jiaotongbu,
		heilongjiangtest,
		beijing,
		qinghai,
		jiangxicenternew,
		xinjiang
	}
	public static String getTopic(String method){
		
		String topic = PropertyUtil.getProperty("centre_topic");
		if (topic == null || "".equals(topic)) {
			return method;
		} else {
//			for(Pro pr : Pro.values()){
//				if(topic.equals(pr.name())){
					return method + "_" + topic;
//				}
//			}
//			throw new RuntimeException(topic+"不存在省份列表中");
		}
		
	}
}
